package com.kaoker.system.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Main {
	private static final Logger log = LoggerFactory.getLogger(SectonServiceTest.class);
	private static ApplicationContext context = null;
	private static SectionService service = null;
	
	public static void main(String[] args) {
		  log.debug( SectonServiceTest.class.getResource("/").toString());
			
		  context = new FileSystemXmlApplicationContext("src/spring-beans.xml");
			log.debug("file system context" + context);
	        service = (SectionService)context.getBean("sectionService");
	        
	        log.debug("init service ");
	}
}
